package com.school.mapper;

import com.school.entity.Order;
import com.school.util.PageQueryUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    List<Order> findOrderList(PageQueryUtil pageQueryUtil);

    int getTotalOrders(PageQueryUtil pageQueryUtil);

    Order selectByPrimaryKey(Long orderId);

    int updateByPrimaryKeySelective(Order temp);

    List<Order> selectByPrimaryKeys(@Param("orderIds") List<Long> list);

    int checkDone(@Param("orderIds") List<Long> list);

    int checkOut(@Param("orderIds") List<Long> list);

    int checkOrder(@Param("orderIds") List<Long> list, @Param("orderstatus") int status);
}
